﻿from django.contrib import admin
from django.contrib.auth.models import User, Group
from django.contrib.auth.admin import UserAdmin, GroupAdmin
from userprofile.models import UserProfile
from userprofile.forms import UserProfileAdminForm
    
class UserProfileAdmin(admin.ModelAdmin):
    
    
    form = UserProfileAdminForm
    list_display = ('last_name', 'first_name', 'gender', 'birth_date', 'contact_L0Object', 'contact_L1Object', 'contact_L2Object', 'contact_L34Object', 'contact_email', 'user', )
    list_filter = ('contact_L0Object', )
   

admin.site.register(User, UserAdmin)
admin.site.register(Group, GroupAdmin)
admin.site.register(UserProfile, UserProfileAdmin)